Ext.define('WT.view.desktop.usermanager.EditUserView',{
	extend:'Ext.window.Window',
	//显示此窗口时遮罩其他组件
	modal:true,
	autoShow:true,
	id:'role-manager-win',
	title:'编辑用户',
	width:800,
	height:500,
	layout: 'fit',
	//window items start
	items:[{
		 xtype:'tabpanel',
		 height: 150,
		 //tab items start
		 items:[
		    //第一个tab开始
		    {
			defaults: {
         	width: 230,
         	labelSeparator :'：',
         	labelWidth : 60
         	},
    			defaultType: 'textfield',
    			bodyStyle: {  
                 padding: '15px'  //内间距 
             },
             title:'用户管理',
             style:'font-family:新宋体,黑体;font-size:12;font-weight:normal;px!important;',
             // form start
             items: [
                     {
                     	 fieldLabel: '用户名',
                          name: 'userName',
                          style: 'font-size: 15px',
                          allowBlank:false,
                          blankText : '不允许为空',
                          msgTarget :'qtip' ,
                          TextWidth:50
                     },
                     {
                     	   fieldLabel: '密码',
                            name: 'password',
                            style: 'font-size: 15px',
                            inputType: 'password',
                            allowBlank:false
                     },
                     {
                     	  fieldLabel: '确认密码',
                           name: 'password',
                           style: 'font-size: 15px',
                           inputType: 'password',
                           allowBlank:false
                     },{
                    	xtype : 'radiogroup',
                        fieldLabel:'使用状态',
                        columns:2,
                        items:[{
                        	name:'status',
                        	inputValue:'1',
                        	boxLabel:'启用',
                        	checked:true
                        },{
                        	name:'status',
                        	inputValue:'2',
                        	boxLabel:'禁用'
                        }]
                    },
                     {
                     	xtype:'textarea',
                         name:'mark',
                         fieldLabel: '备注',
                         width:400
                     }
                 ]
                 
                 // form end
             
		     },
		   //第一个tab结束
		     
		     //第二个tab开始
		    {
 				border: false,
                 xtype: 'grid',
                 title:'角色管理',
               //dockedItems start
                 dockedItems:[{    
                            	 dock:'bottom',    
                            	 xtype:'pagingtoolbar',    
                            	 displayInfo:true,    
                            	 displayMsg:'显示{0}-{1}条，共计{2}条',    
                            	 emptyMsg:'没有数据'    
                             }],
                //dockedItems end   
                             
                
                 selModel: new Ext.selection.CheckboxModel,
                
                 //columns start
                 columns: [
                     {
                         text: "角色名",
                         flex:1,
                         sortable: true,
                         dataIndex: 'roleName'
                     },
                     {
                         text: "描述",
                         width: 150,
                         sortable: true,
                         dataIndex: 'mark'
                     }]
               //columns end
 			}
		     //第二个tab结束
		 ]
		 //tab items end
	}],
	
	buttons:[{
		text:'确认',
		id:'login',
	    iconCls:'create-user-finsh'
	},{
		text:'取消',
		id:'reset',
		iconCls:'remove'
	}]
});